package com.ssm.service;

import com.ssm.model.Book;

import java.util.List;

public interface BookService {
    public List<Book> selectAllBook();
    public List<Book> selectBookByName(String name);
    public List<Book> selectBookByType(String type);
    public List<Book> selectBookByAuthor(String author);

    public Book selectBookByBook_id(String book_id);

    public void addBook(Book book);

    public void updateBook(Book book);

    public void deleteBook(String book_id);

    public void decreaseQuantity(String book_id, int cnt);
}
